<?php
include_once('Creater.php');
include_once('Product.php');
//选择题工厂
class ChooseFactory extends Creater
{
	private $bank;

	public function factoryMethod($product)//由工厂获取创建具体对象
	{
		$this->bank=$product;
		return ($this->bank->getProperties());
	}
}